import Mock from "mockjs"

export default {
    gethomeData: () => { //home页的数据
        return {
            code: 20000, //成功状态码
            data: {
                // 订单数据
                numtopData: [
                    {
                        name: '今日支付订单',
                        value: Mock.Random.float(100, 1000, 0, 2),
                        icon: 'success',
                        color: '#2ec7c9'
                    },
                    {
                        name: '今日收藏订单',
                        value: Mock.Random.float(100, 1000, 0, 2),
                        icon: 'star-on',
                        color: '#ffb980'
                    },
                    {
                        name: '今日未支付订单',
                        value: Mock.Random.float(100, 1000, 0, 2),

                        icon: 's-goods',
                        color: '#5ab1ef'
                    },
                    {
                        name: '本月支付订单',
                        value: Mock.Random.float(100, 1000, 0, 2),
                        icon: 'circle-check',
                        color: '#2ec7c9'
                    },
                    {
                        name: '本月收藏订单',
                        value: Mock.Random.float(100, 1000, 0, 2),
                        icon: 'shopping-cart-2',
                        color: '#ffb980'
                    },
                    {
                        name: '本月未支付订单',
                        value: Mock.Random.float(100, 1000, 0, 2),
                        icon: 'goods',
                        color: '#5ab1ef'
                    }
                ],
                // 表格数据
                tableData: [
                    {
                        name: 'ES6',
                        todayBuy: Mock.Random.float(500, 800, 0, 2),
                        monthBuy: Mock.Random.float(10000, 20000, 0, 2),
                        totalBuy: Mock.Random.float(100000, 300000, 0, 2)
                    },
                    {
                        name: '小程序',
                        todayBuy: Mock.Random.float(500, 800, 0, 2),
                        monthBuy: Mock.Random.float(10000, 20000, 0, 2),
                        totalBuy: Mock.Random.float(100000, 300000, 0, 2)
                    },
                    {
                        name: 'Vue',
                        todayBuy: Mock.Random.float(500, 800, 0, 2),
                        monthBuy: Mock.Random.float(10000, 20000, 0, 2),
                        totalBuy: Mock.Random.float(100000, 300000, 0, 2)
                    },
                    {
                        name: 'SpringBoot',
                        todayBuy: Mock.Random.float(500, 800, 0, 2),
                        monthBuy: Mock.Random.float(10000, 20000, 0, 2),
                        totalBuy: Mock.Random.float(100000, 300000, 0, 2)
                    },
                    {
                        name: 'uniapp',
                        todayBuy: Mock.Random.float(500, 800, 0, 2),
                        monthBuy: Mock.Random.float(10000, 20000, 0, 2),
                        totalBuy: Mock.Random.float(100000, 300000, 0, 2)
                    },
                    {
                        name: '小程序',
                        todayBuy: Mock.Random.float(500, 800, 0, 2),
                        monthBuy: Mock.Random.float(10000, 20000, 0, 2),
                        totalBuy: Mock.Random.float(100000, 300000, 0, 2)
                    }
                ],
                // 折线图数据
                orderData: {
                    selldata: [
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        },
                        {
                            Vue: Mock.Random.float(1000, 10000, 0, 2),
                            JavaScript: Mock.Random.float(1000, 10000, 0, 2),
                            uniapp: Mock.Random.float(1000, 10000, 0, 2),
                            "Node.js": Mock.Random.float(1000, 10000, 0, 2),
                            React: Mock.Random.float(1000, 10000, 0, 2),
                            wechat: Mock.Random.float(1000, 10000, 0, 2),
                        }
                    ],
                    selltime: [
                        '2021-10-11', '2021-10-12', '2021-10-13', '2021-10-14', '2021-10-15', '2021-10-16', '2021-10-17'
                    ],
                    text: '今年订单量图表'
                },
                // 用户数据bar图
                userData: {
                    text: '本周用户量图表',
                    time: [
                    '周一', '周二', '周三', '周四', '周五', '周六', '周日'
                    ],
                    num: [
                    {
                        '新增用户': Mock.Random.integer(10, 100),
                        '活跃用户': Mock.Random.integer(40, 400),
                    },
                    {
                        '新增用户': Mock.Random.integer(10, 100),
                        '活跃用户': Mock.Random.integer(40, 400),
                    },
                    {
                        '新增用户': Mock.Random.integer(10, 100),
                        '活跃用户': Mock.Random.integer(40, 400),
                    },
                    {
                        '新增用户': Mock.Random.integer(10, 100),
                        '活跃用户': Mock.Random.integer(40, 400),
                    },
                    {
                        '新增用户': Mock.Random.integer(10, 100),
                        '活跃用户': Mock.Random.integer(40, 400),
                    },
                    {
                        '新增用户': Mock.Random.integer(10, 100),
                        '活跃用户': Mock.Random.integer(40, 400),
                    },
                    {
                        '新增用户': Mock.Random.integer(10, 100),
                        '活跃用户': Mock.Random.integer(40, 400),
                    },
                    ]
                },
                // 饼图视频数据：
                videoData: [
                    {
                        name: 'SpringBoot',
                        value: Mock.Random.float(1000, 10000, 0, 2)
                    },
                    {
                        name: 'vue',
                        value: Mock.Random.float(1000, 10000, 0, 2)
                    },
                    {
                        name: '小程序',
                        value: Mock.Random.float(1000, 10000, 0, 2)
                    },
                    {
                        name: 'Java',
                        value: Mock.Random.float(1000, 10000, 0, 2)
                    },
                    {
                        name: 'Es6',
                        value: Mock.Random.float(1000, 10000, 0, 2)
                    },
                    {
                        name: 'javascript',
                        value: Mock.Random.float(1000, 10000, 0, 2)
                    }
                ]
            }
        }
    }
}